package com.qx.chat.system.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="qx_org_deptuser")
public class DeptUser extends Entity{
	
	private static final long serialVersionUID = -4138897124554139234L;

	@Id
	private String id;
	//部门ID
	@DBRef
	private Dept dept;
	//用户ID
	@DBRef
	private User user;
	//是否为主部门 0是1为兼职
	private Integer isPrimary;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Integer getIsPrimary() {
		return isPrimary;
	}
	public void setIsPrimary(Integer isPrimary) {
		this.isPrimary = isPrimary;
	}

}
